import { createRouter, createWebHashHistory } from 'vue-router';
import Login from '../views/Login.vue'
import TradingPanel from '../views/TradingPanel.vue'
import TradingController from '../views/TradingController.vue'
import ContractSearch from '../views/ContractSearch.vue'
import AccountAdd from '../views/AccountAdd.vue'

const routes = [
    { path: '/', name: 'Index', component: Login },
    { path: '/login', name: 'Login', component: Login },
    { path: '/contract-search', name: 'ContractSearch', component: ContractSearch },
    { path: '/account-add', name: 'AccountAdd', component: AccountAdd },
    { path: '/trading-panel', name: 'TradingPanelAlt', component: TradingPanel },
    { path: '/trading-controller', name: 'TradingController', component: TradingController },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router